package springBoot.akai.Akai.Controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import springBoot.akai.Akai.Mapper.VideoMapper;

@Controller
public class PlayerController {
    @Autowired
    private VideoMapper videoMapper;

    @RequestMapping("/player")
    String player(Model model, int id) {
        model.addAttribute("video", videoMapper.selectById(id));

        return "player";
    }
}
